Android Studio Error 1 : Cannot launch Android SDK Manager

Hayley
1 min readApr 11, 2015

--

ERROR: SWT folder '' does not exist. Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.

What I did to make it work (on Windows 8):

First, ensure you have already done the following step.

Go to windows environment variables setting (Control Panel\System and Security\System > System Protection > Advanced> Environment Variables) , create a new(if it already exists, edit the old one) variable with name: JAVA_HOME and value to your installed JDK path like:
C:\Program Files\Java\jdk1.7.0_45\ and also add this to end of your path variable: %JAVA_HOME%/bin

  1. Delete the old android sdk folder. In my case, it was in the D drive.
  2. Reinstall the Android SDK tools at http://developer.android.com/sdk/installing/index.html?pkg=tools
  3. Re-open Android Studio
  4. If it still does not work, open Notepad as Administrator.

Open the android.bat. Location of file: [ C:\Program Files (x86)\Android\android-sdk\tools ]

Add this line :

set java_exe=%JAVA_HOME%\bin\java.exe

after these lines in android.bat :

rem Check we have a valid Java.exe in the path.
set java_exe=
call lib\find_java.bat
if not defined java_exe goto :EOF

5.

delete

for /f "delims=" %%a in ('"%java_exe%" -jar lib\archquery.jar') do set swt_path=lib\%%a

add, if you using x86_64 system

set swt_path=lib\x86_64

otherwise

set swt_path=lib\x86

6. Re-Run Android Studio

--

--